//
//  WYStrategyCell.m
//  Boss
//
//  Created by admin on 2018/8/28.
//  Copyright © 2018年 admin. All rights reserved.
//

#import "WYStrategyCell.h"
@interface WYStrategyCell()

@property (strong, nonatomic) IBOutlet UIView *backView;

@property (strong, nonatomic) IBOutlet UIImageView *nameImageView;

@property (strong, nonatomic) IBOutlet UILabel *nameLabel;
@property (strong, nonatomic) IBOutlet UILabel *descLabel;

@end
@implementation WYStrategyCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [self setUpUI];
}
-(void)setUpUI
{
    [self.backView setCornerRadius:5.f];
    self.nameLabel.font = kFontSystemBIgger2(14);
    self.descLabel.font =kFontSystemBIgger2(10);
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setModel:(WYStrategyModel *)model
{
    _model = model;
    self.nameLabel.text = model.firstName;
    self.descLabel.text = model.secondName;
    [self.nameImageView sd_setImageWithURL:[NSURL URLWithString:model.icon] placeholderImage:nil];
    
    
}
@end
